﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Rabbit.Repository.Migrations
{
    public partial class log11 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ProcessingImg",
                columns: table => new
                {
                    PImgId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TMid = table.Column<int>(type: "int", nullable: false),
                    PImgurl = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PImgstate = table.Column<int>(type: "int", nullable: false),
                    AddName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    AddDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DelName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DelDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<int>(type: "int", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcessingImg", x => x.PImgId);
                });

            migrationBuilder.CreateTable(
                name: "ProcessingInfo",
                columns: table => new
                {
                    PIid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TMid = table.Column<int>(type: "int", nullable: false),
                    PITeam = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PIPeople = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcessingInfo", x => x.PIid);
                });

            migrationBuilder.CreateTable(
                name: "ProcessingQY",
                columns: table => new
                {
                    PQYid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TMid = table.Column<int>(type: "int", nullable: false),
                    PQYName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    TMProduction = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcessingQY", x => x.PQYid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ProcessingImg");

            migrationBuilder.DropTable(
                name: "ProcessingInfo");

            migrationBuilder.DropTable(
                name: "ProcessingQY");
        }
    }
}
